{config_load 'layout.conf' 'css'}
<script type="text/javascript">
	{literal}	
	function css_open(){
	}
	function css_validate(){
		return true;
	}
	function css_close(){	
		return true;
	}	
	{/literal}	
</script>

{foreach $conf->values['content.def']['css'] as $def}
	{if ($def|contains:"|")}
		{assign var="indexOfPipe" 		value=$def|strpos:"|"}		
		{assign var="valuestr" 			value=$def|substr:($indexOfPipe+1)}			
		
		{assign var="values" value=","|explode:$valuestr}
		{assign var="labelkey" value=$def|substr:0:$indexOfPipe}
		
	
		<label for="css_{$labelkey}">{#$labelkey#|default:$labelkey}</label>
		<select id="css_{$labelkey}" name="css_{$labelkey}">
			{html_options values=$values output=$values selected=$content->css[$labelkey]|default:""}
		</select><br/>
	{else}
	<label for="css_{$def}">{#$def#|default:$def}</label>
	<input type="text" name="css_{$def}" id="css_{$def}" value="{$content->css[$def]|default:""}"><br/>
	{/if}
{/foreach}